package com.zmn.oms.services.impl.dict;

import com.zmn.oms.model.entity.dict.ChannelEntrustInterface;
import com.zmn.oms.persistence.interfaces.dict.ChannelEntrustInterfaceDAO;
import com.zmn.oms.services.interfaces.dict.ChannelEntrustInterfaceService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 类描述：
 *
 * @author lhl
 * @date 2020/01/13 22:55
 */
@Service("channelEntrustInterfaceService")
public class ChannelEntrustInterfaceServiceImpl implements ChannelEntrustInterfaceService {

    @Resource
    private ChannelEntrustInterfaceDAO channelEntrustInterfaceDAO;

    @Override
    public ChannelEntrustInterface findByChannelId(Integer channelId) {
        if (channelId == null) {
            return null;
        }
        return channelEntrustInterfaceDAO.findByChannelId(channelId);
    }
}
